<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="ss"%>

<jsp:include page="../header.jsp" />
<div id="content">
	<div id="topstory" class="box">
		<h1>
			<fmt:message key="department.list.title" />
		</h1>
	</div>
	<div class="padding">
		<div id="dialog-confirm" title="Empty the recycle bin?" style="display: none;">
			<p>
				<span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>This item will be permanently deleted and cannot be recovered. Are you
				sure?
			</p>
		</div>
		<h2></h2>
		<display:table export="true" name="departmentList" requestURI="/department.do" decorator="cz.boxdesign.library.web.decorator.DepartmentTableDecorator"
			pagesize="10">
			<ss:authorize access="hasRole('ROLE_ADMIN')">
				<display:column property="editUrl" titleKey="common.edit" sortable="false" />
			</ss:authorize>
			<display:column property="showUrl" titleKey="common.show" sortable="false" />
			<display:column property="nazev" titleKey="department.name" sortable="true" />
			<display:column property="pocetKnih" titleKey="department.book.count" sortable="true" />
		</display:table>
	</div>
	<!-- /padding -->
</div>
<!-- /content -->
<jsp:include page="side-menu.jsp" />
<jsp:include page="../foother.jsp" />
